package com.yunduansing.core.service;

import java.util.List;

import com.yunduansing.core.dto.AccountDto;
import com.yunduansing.core.model.AccountModel;
import com.yunduansing.core.utils.ResultUtil;

public interface AccountService extends BaseService<AccountModel> {
	ResultUtil login(String account,String password);
	ResultUtil resetPassword(String newPwd,String oldPwd,int id);
	ResultUtil saveWithGroupAndRole(AccountModel model,List<Integer> groupIds,List<Integer> roleIds);
	AccountDto getAccountWithGroupAndRole(int id);
	String getSalt(String account);
}
